package com.lzp;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * War包方式启动类
 *
 * @author dtyy
 * @date 2020/11/8
 */
public class WarStarterApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        // 指向SpringBoot启动类--Application类
        return builder.sources(Application.class);
    }

}
